import Layout from '@/layout'
export const defaultRouterMap = [

  {
    path: '/personal',
    component: Layout,
    permission : ["pl:personlesson:list"],
    children: [
      {
        path: 'courseList',
        name: '我的备课',
        meta: {title: '我的备课',icon: 'feedback'},
        hidden: false,
        component: () => import('@/views/personalCourse/courseList'),
      },
      {
        path: '/personal/courseAdd',
        name: '新增备课',
        hidden : true,
        component: () => import('@/views/personalCourse/courseAdd'),
        meta: {title: '新增备课', parentPath : "/personal/courseList", },
      },
      {
        path: '/personal/courseDetail',
        name: '查看备课',
        hidden : true,
        component: () => import('@/views/personalCourse/courseDetail'),
        meta: {title: '查看备课', parentPath : "/personal/courseList", fallbackPath : "/personal/courseList", fallbackConfirm : false},
      },
      {
        path: '/personal/courseEdit',
        name: '编辑备课',
        hidden : true,
        component: () => import('@/views/personalCourse/courseEdit'),
        meta: {title: '编辑备课', parentPath : "/personal/courseList", fallbackPath : "/personal/courseList", fallbackConfirm : true},
      },
      // {
      //   path: '/personal/postscriptAdd',
      //   name: '新增后记',
      //   hidden : true,
      //   component: () => import('@/views/personalCourse/postscript'),
      //   meta: {title: '新增后记',},
      // },
      // {
      //   path: '/personal/postscriptDetail',
      //   name: '查看后记',
      //   hidden : true,
      //   component: () => import('@/views/personalCourse/postscriptDetail'),
      //   meta: {title: '查看后记',parentPath : "/personal/courseList", fallbackPath : "/personal/courseList", fallbackConfirm : false},
      // },
      // {
      //   path: '/personal/postscriptEdit',
      //   name: '编辑后记',
      //   hidden : true,
      //   component: () => import('@/views/personalCourse/postscriptEdit'),
      //   meta: {title: '编辑后记',parentPath : "/personal/courseList", fallbackPath : "/personal/courseList", fallbackConfirm : false},
      // },

    ],
  },
  {
    path : '/postscript',
    component: Layout,
    permission : ["pl:personpostscript:list"],
    children: [
      {
        path: 'list',
        name: '我的后记',
        meta: {title: '我的后记',icon: 'postscript'},
        hidden: false,
        component: () => import('@/views/postscript/postscriptList'),
      },
      {
        path: '/postscript/postscriptAdd',
        name: '新增后记',
        hidden : true,
        component: () => import('@/views/personalCourse/postscript'),
        meta: {title: '新增后记',parentPath : "/postscript/list",},
      },
      {
        path: '/postscript/postscriptDetail',
        name: '查看后记',
        hidden : true,
        component: () => import('@/views/personalCourse/postscriptDetail'),
        meta: {title: '查看后记',parentPath : "/postscript/list", fallbackPath : "/postscript/list", fallbackConfirm : false},
      },
      {
        path: '/postscript/postscriptEdit',
        name: '编辑后记',
        hidden : true,
        component: () => import('@/views/personalCourse/postscriptEdit'),
        meta: {title: '编辑后记',parentPath : "/postscript/list", fallbackPath : "/postscript/list", fallbackConfirm : false},
      },
    ]
  },
  {
    path : '/pFeedBack',
    component: Layout,
    permission : ["pl:personfeedback:list"],
    children: [
      {
        path: 'list',
        name: '我的反馈',
        meta: {title: '我的反馈',icon: 'fk'},
        hidden: false,
        component: () => import('@/views/personalFeedBack/list'),
      },
      {
        path: '/pFeedBack/detail',
        name: '查看反馈',
        hidden: true,
        component: () => import('@/views/personalFeedBack/detail'),
        meta: {title: '查看反馈', parentPath : "/pFeedBack/list", fallbackPath : "/pFeedBack/list", fallbackConfirm : false},
      }
    ]
  },
  {
    path : '/schoolCourse',
    component: Layout,
    permission : ["pl:schoollesson:list"],
    children: [
      {
        path: 'list',
        name: '全校备课',
        meta: {title: '全校备课',icon: 'feedback'},
        hidden: false,
        component: () => import('@/views/schoolCourse/schoolCourseList'),
      },
      {
        path: '/schoolCourse/courseDetail',
        name: '校级备课',
        hidden : true,
        component: () => import('@/views/schoolCourse/courseDetail'),
        meta: {title: '查看备课', parentPath : "/schoolCourse/list", fallbackPath : "/schoolCourse/list", fallbackConfirm : false},
      },
    ]
  },
  {
    path : '/schoolPostScript',
    component: Layout,
    permission : ["pl:schoolpostscript:list"],
    children: [
      {
        path: 'list',
        name: '全校后记',
        meta: {title: '全校后记',icon: 'postscript'},
        hidden: false,
        component: () => import('@/views/schoolPostScript/schoolPostScriptList'),
      },
      {
        path: '/schoolPostScript/postscriptDetail',
        name: '校级后记',
        hidden : true,
        component: () => import('@/views/schoolPostScript/postscriptDetail'),
        meta: {title: '查看后记',parentPath : "/schoolPostScript/list", fallbackPath : "/schoolPostScript/list", fallbackConfirm : false},
      }
    ]
  },
  {
    path : '/schoolFeedBack',
    component: Layout,
    permission : ["pl:schoolfeedback:list"],
    // name: '全校反馈',
    // meta: {title: '全校反馈',icon: 'student'},
    children: [
      {
        path: 'list',
        name: '全校反馈',
        meta: {title: '全校反馈',icon: 'fk'},
        hidden: false,
        component: () => import('@/views/schoolFeedBack/list'),
      },
      {
        path: '/schoolFeedBack/add',
        name: '新增反馈',
        meta: {title: '新增反馈', parentPath:'/schoolFeedBack/list'},
        hidden: true,
        component: () => import('@/views/schoolFeedBack/add'),
      },
      {
        path: '/schoolFeedBack/edit',
        name: '编辑反馈',
        meta: {title: '编辑反馈', parentPath:'/schoolFeedBack/list', fallbackPath: "/schoolFeedBack/list",fallbackConfirm : false },
        hidden: true,
        component: () => import('@/views/schoolFeedBack/edit'),
      },
      {
        path: '/schoolFeedBack/detail',
        name: '校级反馈',
        meta: {title: '查看反馈', parentPath:'/schoolFeedBack/list', fallbackPath: "/schoolFeedBack/list",fallbackConfirm : false },
        hidden: true,
        component: () => import('@/views/schoolFeedBack/detail'),
      }
    ]
  }
]
